g_string_append (result, action_name);
- return g_string_free (result, FALSE);
+ return g_string_free_and_steal (result);
}
g_string_append_c (result, *p);
}
- return g_string_free (result, FALSE);
+ return g_string_free_and_steal (result);
}
static gboolean
g_string_append (output, " ]");
- return write_string (out, g_string_free (output, FALSE), error);
+ return write_string (out, g_string_free_and_steal (output), error);
}
typedef struct {
}
if (str_buf) {
- result = (guchar *) g_string_free (str_buf, FALSE);
+ result = (guchar *) g_string_free_and_steal (str_buf);
str_buf = NULL;
}
}
if (str_buf) {
- result = (guchar *) g_string_free (str_buf, FALSE);
+ result = (guchar *) g_string_free_and_steal (str_buf);
str_buf = NULL;
}
}
if (str_buf) {
- result = (guchar *) g_string_free (str_buf, FALSE);
+ result = (guchar *) g_string_free_and_steal (str_buf);
}
return result;
}
}
if (stringue && stringue->str) {
- result = g_string_free (stringue, FALSE);
+ result = g_string_free_and_steal (stringue);
}
return result;
break;
}
if (stringue && stringue->str) {
- result = (guchar *) g_string_free (stringue, FALSE);
+ result = (guchar *) g_string_free_and_steal (stringue);
}
return result;
break;
}
if (stringue && stringue->str) {
- result = (guchar *) g_string_free (stringue, FALSE);
+ result = (guchar *) g_string_free_and_steal (stringue);
}
return result;
&stringue);
if (status == CR_OK && stringue) {
- result = (guchar *) g_string_free (stringue, FALSE);
+ result = (guchar *) g_string_free_and_steal (stringue);
stringue = NULL;
} else {
a_this->byte_offset) ;
}
if (result->len) {
- str = g_string_free (result, FALSE) ;
+ str = g_string_free_and_steal (result) ;
} else {
g_string_free (result, TRUE) ;
}
}
if (str_buf) {
- result = (guchar *) g_string_free (str_buf, FALSE);
+ result = (guchar *) g_string_free_and_steal (str_buf);
str_buf = NULL;
}
}
if (str_buf) {
- result = (guchar *) g_string_free (str_buf, FALSE);
+ result = (guchar *) g_string_free_and_steal (str_buf);
}
return result;
}
if (str_buf) {
- result = (guchar *) g_string_free (str_buf, FALSE);
+ result = (guchar *) g_string_free_and_steal (str_buf);
str_buf = NULL;
}
}
if (str_buf) {
- result = (guchar *) g_string_free (str_buf, FALSE);
+ result = (guchar *) g_string_free_and_steal (str_buf);
str_buf = NULL;
}
}
if (str_buf) {
- result = (guchar *) g_string_free (str_buf, FALSE);
+ result = (guchar *) g_string_free_and_steal (str_buf);
str_buf = NULL;
}
cr_utils_dump_n_chars2 (' ', stringue, a_indent);
}
g_string_append (stringue, "}");
- result = g_string_free (stringue, FALSE);
+ result = g_string_free_and_steal (stringue);
g_clear_pointer (&tmp_str, g_free);
return result;
g_string_append (stringue, "\n}");
}
if (stringue) {
- result = g_string_free (stringue, FALSE);
+ result = g_string_free_and_steal (stringue);
stringue = NULL ;
}
return result ;
g_clear_pointer (&str, g_free);
}
if (stringue) {
- str = g_string_free (stringue, FALSE);
+ str = g_string_free_and_steal (stringue);
}
return str ;
}
}
g_string_append (stringue, "\n}\n");
}
- result = g_string_free (stringue, FALSE) ;
+ result = g_string_free_and_steal (stringue) ;
stringue = NULL ;
return result ;
}
g_string_append (stringue, "\n}");
}
if (stringue) {
- str = g_string_free (stringue, FALSE) ;
+ str = g_string_free_and_steal (stringue) ;
}
return str ;
}
g_string_append (stringue, " ;");
}
if (stringue) {
- str = g_string_free (stringue, FALSE) ;
+ str = g_string_free_and_steal (stringue) ;
stringue = NULL ;
}
return str ;
str = NULL ;
}
}
- str = g_string_free (stringue, FALSE) ;
+ str = g_string_free_and_steal (stringue) ;
return str ;
}
}
}
if (stringue) {
- str = g_string_free (stringue, FALSE) ;
+ str = g_string_free_and_steal (stringue) ;
stringue = NULL ;
}
return str ;
}
if (str_buf) {
- result = (guchar *) g_string_free (str_buf, FALSE);
+ result = (guchar *) g_string_free_and_steal (str_buf);
str_buf = NULL;
}
}
if (str_buf) {
- result = (guchar *) g_string_free (str_buf, FALSE);
+ result = (guchar *) g_string_free_and_steal (str_buf);
str_buf = NULL;
}
out:
if (result)
{
- *family = g_string_free (family_string, FALSE);
+ *family = g_string_free_and_steal (family_string);
return TRUE;
}
else
g_string_append_c (desc, ']');
- return g_string_free (desc, FALSE);
+ return g_string_free_and_steal (desc);
}
g_string_append_c (desc, ']');
- return g_string_free (desc, FALSE);
+ return g_string_free_and_steal (desc);
}
/**
else
g_string_append(result, "none");
- return g_string_free (result, FALSE);
+ return g_string_free_and_steal (result);
}
static void
++p;
}
- return g_string_free (str, FALSE);
+ return g_string_free_and_steal (str);
}
/* derived from libwnck/xutils.c, comes as LGPLv2+ */